package com.lucenly.card.fragment;

import android.content.Intent;
import android.view.View;
import android.widget.TextView;

import com.lucenly.card.R;
import com.lucenly.card.activity.WithdrawListActivity;
import com.lucenly.card.base.BaseFragment;
import com.lucenly.card.view.dialog.ZfbDialog;

import butterknife.BindView;

/**
 * ================================================
 * 作    者：LuCenly(落尘)
 * 版    本：1.0
 * 创建日期：2018/7/22 17:58
 * 描    述：TODO 余额
 * ================================================
 */
public class MoneyAFragment extends BaseFragment{
    @BindView(R.id.tv_ye)
    TextView tv_ye;
    @BindView(R.id.tv_txye)
    TextView tv_txye;
    @BindView(R.id.tv_jilu)
    TextView tv_jilu;
    @BindView(R.id.tv_sure)
    TextView tv_sure;
    @Override
    protected int getLayoutID() {
        return R.layout.fragment_money_1;
    }

    @Override
    protected void initView(View contentView) {
        getData();
    }

    private void getData() {
    }
    public void setData(double balanceFee,String withdrawFee){
        tv_ye.setText(balanceFee+"");
        tv_txye.setText(withdrawFee+"");
    }
    @Override
    protected void bindEvent() {
        C(tv_jilu);
        C(tv_sure);
    }

    @Override
    protected void initData() {

    }

    @Override
    protected void lazyLoad() {

    }

    @Override
    protected void processClick(View view) {
        switch (view.getId()){
            case R.id.tv_jilu:
                startActivity(new Intent(getActivity(), WithdrawListActivity.class));
                break;
            case R.id.tv_sure:
                ZfbDialog zfbDialog = new ZfbDialog(getActivity());
                zfbDialog.show();
                break;
        }
    }
}
